package com.mp.android.apps.readActivity.local;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import com.mp.android.apps.book.dao.DaoMaster;
import org.greenrobot.greendao.database.Database;


@Deprecated
public class MyOpenHelper extends DaoMaster.DevOpenHelper {
    public MyOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory) {
        super(context, name, factory);
    }

    @Override
    public void onUpgrade(Database db, int oldVersion, int newVersion) {
        // 跨版本更新策略
        switch (oldVersion) {
            case 1:
                // 暂无 1.0
                Update2Helper.getInstance().update(db);
            default:
                break;
        }
    }
}
